import request from '../utils/request'
const BasicInformation = () => request({
  url: '/v1_0/user'
})
const UserEdit = () => request({
  url: '/v1_0/user/profile'
})
const photoUpdata = (a) => request({
  method: 'PATCH',
  url: '/v1_0/user/photo',
  data: a
})
const userUpdata = ({ birthday, name }) => request({
  method: 'PATCH',
  url: '/v1_0/user/profile',
  data: {
    birthday,
    name
  }
})
// token续签
const updataToken = () => request({
  method: 'PUT',
  url: '/v1_0/authorizations'
})
export { BasicInformation, UserEdit, photoUpdata, userUpdata, updataToken }
